#ifndef _CANIMATION_H_
#define _CANIMATION_H_

#include <SDL.h>

class CAnimation
{
private:
	int m_nCurrentFrame;
	int m_nFrameIncrement;

	int m_nFrameRate;
	long m_lOldTime;

public:
	int m_nMaxFrames;
	bool m_bOscillate;

	CAnimation();
	void OnAnimate();

	void SetFrameRate(int Rate);
	void SetCurrentFrame(int Frame);
	int GetCurrentFrame();
};


#endif